package com.ruoyi.liangshi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.liangshi.domain.ArchItemClass;
import com.ruoyi.liangshi.domain.GdArchPoint;
import com.ruoyi.liangshi.mapper.ArchItemClassMapper;
import com.ruoyi.liangshi.mapper.GdArchPointMapper;
import com.ruoyi.liangshi.service.IGdArchPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 桌号信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-18
 */
@Service
public class GdArchPointServiceImpl extends ServiceImpl<GdArchPointMapper, GdArchPoint> implements IGdArchPointService
{
    @Autowired
    private GdArchPointMapper gdArchPointMapper;

    /**
     * 查询桌号信息
     * 
     * @param id 桌号信息主键
     * @return 桌号信息
     */
    @Override
    public GdArchPoint selectGdArchPointById(Long id)
    {
        return gdArchPointMapper.selectGdArchPointById(id);
    }

    /**
     * 查询桌号信息列表
     * 
     * @param gdArchPoint 桌号信息
     * @return 桌号信息
     */
    @Override
    public List<GdArchPoint> selectGdArchPointList(GdArchPoint gdArchPoint)
    {
        return gdArchPointMapper.selectGdArchPointList(gdArchPoint);
    }

    /**
     * 新增桌号信息
     * 
     * @param gdArchPoint 桌号信息
     * @return 结果
     */
    @Override
    public int insertGdArchPoint(GdArchPoint gdArchPoint)
    {
        return gdArchPointMapper.insertGdArchPoint(gdArchPoint);
    }

    /**
     * 修改桌号信息
     * 
     * @param gdArchPoint 桌号信息
     * @return 结果
     */
    @Override
    public int updateGdArchPoint(GdArchPoint gdArchPoint)
    {
        return gdArchPointMapper.updateGdArchPoint(gdArchPoint);
    }

    /**
     * 批量删除桌号信息
     * 
     * @param ids 需要删除的桌号信息主键
     * @return 结果
     */
    @Override
    public int deleteGdArchPointByIds(Long[] ids)
    {
        return gdArchPointMapper.deleteGdArchPointByIds(ids);
    }

    /**
     * 删除桌号信息信息
     * 
     * @param id 桌号信息主键
     * @return 结果
     */
    @Override
    public int deleteGdArchPointById(Long id)
    {
        return gdArchPointMapper.deleteGdArchPointById(id);
    }
}
